home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Exchange
/
CD Exchange - Volume 1.iso
/
d.t.p
/
utils
/
others
/
pcal
/
pcal.doc
< prev
next >
Wrap
Text File
|
1994-02-13
|
35KB
|
793 lines
PCAL(1) PCAL(1)
NNAAMMEE
pcal - generate PostScript calendars
SSYYNNOOPPSSIISS
ppccaall [--ee|--ff _c_a_l] [--oo _f_i_l_e] [--jj | --JJ] [--ll | --pp] [--mm | --MM]
[--bb _d_a_y|all] [--gg _d_a_y|all] [--OO] [--GG]
[--ss [[_d_a_t_e___s_h_a_d_e]][[//_f_i_l_l___s_h_a_d_e]]_] _[--FF _d_a_y_] _[--AA_|--EE_]
_[--tt _t_i_t_l_e___f_o_n_t_] _[--dd _d_a_y___f_o_n_t_] _[--nn _t_e_x_t___f_o_n_t_[_/_s_i_z_e_]_]
_[--LL _f_o_o_t_e_r___s_t_r_] _[--CC _f_o_o_t_e_r___s_t_r_] _[--RR _f_o_o_t_e_r___s_t_r_]
_[--NN _n_o_t_e_s___s_t_r_] _[--DD _s_y_m_b_o_l_] _[--UU _s_y_m_b_o_l_] _[--xx _x_s_c_a_l_e_]
_[--yy _y_s_c_a_l_e_] _[--XX _x_t_r_a_n_s_] _[--YY _y_t_r_a_n_s_] _[--II_] _[--BB_]
_[--SS _| --kk _| --KK_] _[--ww_] _[--hh _| --uu _| --vv_] _[_m_o_n_t_h_] _[_y_e_a_r_]
_[_n_m_o_n_t_h_s_]
DDEESSCCRRIIPPTTIIOONN
_P_c_a_l generates PostScript to produce landscape or portrait
calendars for any month and year. The arguments mmoonntthh,
yyeeaarr, and nnmmoonntthhss, if provided, should be numeric. The
mmoonntthh value should be in the range 1 - 12, and the yyeeaarr
value should be specified as 1 or 2 digits or as the full
4 digit year. If no numeric arguments are provided, the
calendar for the current month and year will be generated.
If one numeric argument is provided, it is interpreted as
the yyeeaarr value, and calendars for the entire year will be
generated. Otherwise, nnmmoonntthhss months, starting with mmoonntthh
and yyeeaarr, will be generated.
For whole-year calendars (i.e. the --ww option is given),
the command line arguments are interpreted somewhat dif-
ferently. By default, all months in the current year are
printed, starting with January. If the mmoonntthh argument
alone is given, it is expected to be the desired yyeeaarr to
print, and prints all of the months in the given year. If
both mmoonntthh and yyeeaarr are given, then 12 consecutive months
are printed starting at the given month and year. If the
mmoonntthh, yyeeaarr, and nnmmoonntthhss arguments are all present, print-
ing begins with the given month and year and nnmmoonntthhss
months are printed, rounded up to the nearest multiple of
12.
TThhee DDaattee FFiillee
By default, _p_c_a_l simply prints an empty calendar. Its
real power is in its ability to place ``events'' in appro-
priate days on the calendar, thus allowing the user to
create personalized calendars. This is achieved through
the use of the ``date file''.
The date file is named _._c_a_l_e_n_d_a_r (_p_c_a_l_._d_a_t under MS-DOS),
or _c_a_l_e_n_d_a_r for compatibility with older versions. _P_c_a_l
will look in several places for such a file. First, if
the environment variable PPCCAALL__DDIIRR is defined, _p_c_a_l
searches the directory indicated by that variable. Next,
1
PCAL(1) PCAL(1)
_p_c_a_l searches the user's home directory (as specified by
the HHOOMMEE environment variable). If neither PPCCAALL__DDIIRR nor
HHOOMMEE is defined, _p_c_a_l searches the current directory
instead. Finally, the directory where the _p_c_a_l executable
resides will be checked. If no date file is found, an
empty calendar is printed; no error is generated.
If a date file is found, it will be searched for lines
with leading dates matching the requested month and year.
Any text following the dates found will be printed on the
calendar under the appropriate day of the month. Dates in
the _._c_a_l_e_n_d_a_r file may be expressed in any of several for-
mats:
<<oorrddiinnaall>> <<ddaayy__ssppeecc>> iinn <<mmoonntthh__ssppeecc>>{{**}} {{<<tteexxtt>>}}
<<ddaayy__ssppeecc>> <<pprreepp>> <<ddaattee__ssppeecc>>{{**}} {{<<tteexxtt>>}}
<<ddaattee__ssppeecc>>{{**}} {{<<tteexxtt>>}}
Where:
<month_name> := first 3+ characters of name of month, or ``all''
<month_spec> := <month_name>, or ``year''
<day_spec> := first 3+ characters of name of weekday, ``day'',
``weekday'', ``workday'', ``holiday'', ``nonweekday'',
``nonworkday'', ``nonholiday'', ``new_moon'',
``first_quarter'', ``full_moon'', or ``last_quarter''
<ordinal> := any ordinal number (``1st'', ``2nd'', etc.), ``first'' ... ``fifth'',
``last'', ``odd'', ``even'', or ``all''
<prep> := ``before'', ``preceding'', ``after'', ``following'',
``on_or_before'' (``oob''), or ``on_or_after'' (``ooa'')
<sep> := one or more non-numeric, non-space, non-`*' characters
<month> := a numeric month (1-12)
<day> := day of month (1-31)
<year> := a numeric year
If the --AA option (American date formats, the default) is
given:
<date_spec> := <month_name> <day> | <month><sep><day>{<sep><year>}
If the --EE option (European date formats) is given:
<date_spec> := <month_name> <day> | <month><sep><day>{<sep><year>}
_P_c_a_l also allows format specifiers in both the text and
foot strings (see the --LL, --CC, --RR, and --NN options below);
each will be replaced by a corresponding string as out-
lined in the table below. Most of these are derived from
the ANSI C ssttrrffttiimmee(()) function; the %%[[lloouuwwMMDD]] and %%[[oo00++--]]
format specifiers are specific to _p_c_a_l:
%a abbreviated weekday
%A full weekday
%b abbreviated month name
2
PCAL(1) PCAL(1)
%B full month name
%d day of month (1-31)
%j day of year (1-366)
%l days left in year (0-365)
%m month (1-12)
%U week number (0-53)
%W week number (0-53)
%u week number (1-54)
%w week number (1-54)
%y year w/o century (00-99)
%Y year w/century
%% `%' character
%o print number as ordinal
%0 print number with leading zeroes
%+ use following month or year
%- use previous month or year
%{+N}[DWMY] adjust date by +N days/weeks/months/years
%{-N}[DWMY] adjust date by -N days/weeks/months/years
The %%uu specifier considers the week containing 1/1 as week
1 and the following logical Sunday (the first day of the
week as printed; cf. the --FF option below) as the start of
week 2; %%UU considers the first logical Sunday as the first
day of week 1. %%ww and %%WW behave like %%uu and %%UU respec-
tively, but use the first logical Monday instead. Note
that %%ww ssttrrffttiimmee(())..
The %%oo format specifier